void waveform()
{
	string inputFilePath = "/pmtfs/disk02/container_data/container4/test/FADC_Run/7949/7_1_07-18-0437_10008_7949";
ifstream inputFile;
inputFile.open(inputFilePath,ios::in);
cout<<"the input fp:"<<inputFilePath<<endl;

unsigned short oneSamplePoint;  // 10-bit sampling value takes 2 Bytes to store.
  int lengthOfEachWave = __WaveLength;
   
   int fcount=0; //frame count
//vector waveframe(lengthOfEachWave,0);
vector<int> waveframe;
   
   
    for (int ii = 0; ii < 10008; ii++)
//        for (int ii = 0; ii < lengthOfEachWave; ii++)
        {
            inputFile.read(reinterpret_cast<char*>(&oneSamplePoint),2);     // Using reinterpret_cast to convert binary data.
			oneSamplePoint=__builtin_bswap16(oneSamplePoint);
			 waveframe.push_back(oneSamplePoint);
        }
        
   
   
   
   }